import Vue from "vue";
// antd-icon
import { Icon } from "ant-design-vue";
// 展示型表格
import BaseTable from "@/components/base-table";
// 功能型表格
import SearchTable from "@/components/search-table";
// 行内式查询表单
import SearchBar from "@/components/search-bar";
// 可拖拽移动
import Draggable from "vuedraggable";
// 自定义表单
import DivForm from "@/components/div-form";
// 层级编辑器
import CascaderBar from "@/components/cascader-bar";
// 分割线
import DividerBar from "@/components/divider-bar";
// 时间范围选择器
import TimeRange from "@/components/time-range";
// 颜色取色器
import { ColorPicker, ColorPanel } from 'one-colorpicker'
// 富文本编辑器
import QuillEditor from '@/components/quill-editor'
// 视图弹框
import VuePopper from '@/components/vue-popper'

Vue.use(Icon);
Vue.use(ColorPanel)
Vue.use(ColorPicker)

const IconFont = Icon.createFromIconfontCN({
  scriptUrl: "//at.alicdn.com/t/font_2979202_hv4rbozp47.js",
});

Vue.component("icon-font", IconFont);
Vue.component("CascaderBar", CascaderBar);
Vue.component("BaseTable", BaseTable);
Vue.component("SearchTable", SearchTable);
Vue.component("SearchBar", SearchBar);
Vue.component("Draggable", Draggable);
Vue.component("DivForm", DivForm);
Vue.component("DividerBar", DividerBar);
Vue.component("TimeRange", TimeRange);
Vue.component("QuillEditor", QuillEditor);
// Vue.component("popper", popper);
Vue.component("VuePopper", VuePopper);
